﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WriterStars.Model;

namespace WriterStars.Models.ViewModels
{
    public class CategoryViewModel
    {
        public CategoryViewModel(Category category, bool userSelected = true)
        {
            this.Id = category.Id;
            this.Name = category.Name;
            this.Image = category.Image;
            this.Text = "Do you want to select this category?";
            this.Selected = userSelected;
        }

        public int Id { get; set; }

        public string Name { get; set; }

        public string Image { get; set; }

        public string Text { get; set; }

        public bool Selected { get; set; }
    }
}